<?php
/**
 * ClassName: TreatmentServicesModel
 * Description: 给病人开的治疗服务model
 * @Author 周昌
 * @Create 2023/11/17 16:18
 */

namespace model;


class TreatmentServicesModel extends BaseModel
{
    protected $name='treatment_services';
    //时间获取器
    public function getAddTimeAttr($value){
        if(!empty($value)&& is_integer($value)){
            return date('Y-m-d H:i:s', $value);
        }else{
            return $value;
        }

    }
    public function getTreatmentTimeAttr($value){
        if(!empty($value)&& is_integer($value)){
            return date('Y-m-d H:i:s', $value);
        }else{
            return $value;
        }

    }
}